package com.UnionPayCenter.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.UnionPayCenter.base.MyMapper;
import com.UnionPayCenter.entity.WhiteListEntity;
import com.UnionPayCenter.entity.WhitelistSetEntity;

@Repository
@Mapper
public interface WhiteListMapper extends MyMapper<WhiteListEntity>{

    List<WhiteListEntity> selectList(@Param("shopId") Integer shopId, @Param("mobile") String mobile);

    WhiteListEntity selectByMobile(@Param("mobile") String mobile, @Param("shopId") Integer shopId);
    
    WhiteListEntity selectByWhitelistId(@Param("wlId") Integer wlId);

    int insertBatch(@Param("whiteList") List<WhiteListEntity> whiteList);

    int deleteOldSet(@Param("shopId") Integer shopId);

    int insertSetList(@Param("setList") List<WhitelistSetEntity> setList);

    List<WhitelistSetEntity> selectByShop(@Param("shopId") Integer shopId);

}
